package cn.winter.controller;

import java.util.List;

//import com.ddl.dao.PersonDao;
//import com.ddl.entity.PersonEntity;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import cn.winter.entity.User;
import cn.winter.service.UserService;
@Controller
public class personController {

    @Autowired
    //private PersonDao personDao;
    private UserService userService;
    @RequestMapping("/getp")
    public String getPersonAll(){
        System.out.println("触发");
      /*  List<PersonEntity> persons = personDao.getPersons();
        for (PersonEntity person : persons) {
            System.out.println(person.getName());
        }*/
        return "success";
    }
    @RequestMapping("/login")
    public String login(){
    	List<User> user = userService.findAll();
    	System.out.println(user);
    	return "success";
    }















}
